<?php
/* Item */
$item = array(
	"showitem"=>new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:id_item)$',   'module'   => 'Community', 'action' => 'ShowItem',
		'id_item' => '[0-9]+',
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:id_item)/(:path)$',
		'module'   => 'Community',
		'action' => 'ShowItem',
		'id_item' => '[0-9]+',
		'path' => 'ajax',
		'is_ajax' => 1,
	  )),

	'edititem' => new $pattern ($self, array( // update
		'(:base_url)/(:community_url)/(:id_item)/(:path)$',
		'module' => 'Community',
		'action' => 'EditItem',
		'path' => 'edititem',
		'id_item' => '[0-9]+',
	  )),

	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:path)$',
		'module'   => 'Community',
		'action' => 'CreateItem',
		'path' => 'createitem',
	  )),

	"createitem_type"=>
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:tdi_url)/(:doctype_url)/(:path)$',
		'module' => 'Community',
		'action' => 'CreateItem',
		'tdi_url' => '[a-zA-Z-][-a-zA-Z0-9_]*',
		'doctype_url' => '[a-zA-Z-][-a-zA-Z0-9_]*',
		'path' => 'createitem',
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:doctype_url)/(:path)$',
		'module' => 'Community',
		'action' => 'CreateItem',
		'path' => 'createitem',
		'doctype_url' => '[a-zA-Z-][-a-zA-Z0-9_]*'
	  )),
	new $pattern ($self, array(
		'(:base_url)/(:community_url)/(:id_item)/(:act)$',   'module'   => 'Community', 'action' => 'DeleteItem',
		'id_item' => '[0-9]+',
		'act' => 'deleteitem',
	  )),
);
